package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_JZZFZCLX"
 *     
*/
public class DmJzzfzclx implements Serializable {

    /** identifier field */
    private String jzzfzclxDm;

    /** persistent field */
    private String jzzfzclxMc;

    /** full constructor */
    public DmJzzfzclx(String jzzfzclxDm, String jzzfzclxMc) {
        this.jzzfzclxDm = jzzfzclxDm;
        this.jzzfzclxMc = jzzfzclxMc;
    }

    /** default constructor */
    public DmJzzfzclx() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="JZZFZCLX_DM"
     *         
     */
    public String getJzzfzclxDm() {
        return this.jzzfzclxDm;
    }

    public void setJzzfzclxDm(String jzzfzclxDm) {
        this.jzzfzclxDm = jzzfzclxDm;
    }

    /** 
     *            @hibernate.property
     *             column="JZZFZCLX_MC"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getJzzfzclxMc() {
        return this.jzzfzclxMc;
    }

    public void setJzzfzclxMc(String jzzfzclxMc) {
        this.jzzfzclxMc = jzzfzclxMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("jzzfzclxDm", getJzzfzclxDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmJzzfzclx) ) return false;
        DmJzzfzclx castOther = (DmJzzfzclx) other;
        return new EqualsBuilder()
            .append(this.getJzzfzclxDm(), castOther.getJzzfzclxDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getJzzfzclxDm())
            .toHashCode();
    }

}
